//
//  CommentCell.m
//  Mtime
//
//  Created by Mac on 15/8/8.
//  Copyright (c) 2015年 wxk. All rights reserved.
//

#import "CommentCell.h"

@implementation CommentCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setModel:(CommentModel *)model {

    _model = model;

    _commentTitle.text = model.title;
    
    _summery.text = model.summary;
    
    [_nickImage setImageWithURL:[NSURL URLWithString:model.userImage]];
    
    _nickName.text = [NSString stringWithFormat:@"%@-评",model.nickname];
    
    _movieTitle.text = [model.relatedObj objectForKey:@"title"];
    
    [_movieImage setImageWithURL:[NSURL URLWithString:[model.relatedObj objectForKey:@"image"]]];
    
    _nickRating.text = model.rating;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
